<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>在线oj系统</title>
    <style>
        /* 起手式 */
        *{
            /* 消除页边距 */
            margin: 0px;
            padding: 0px;
        }

        html,
        body{
            width: 100%;
            height: 100%;
        }
        /* 设置导航栏 */
        .container .navbar{
            width: 100%;
            height: 50px;
            background-color: black;
            /* 取消浮动影响 */
            overflow: hidden;
        }

        .container .navbar a{
            display: inline-block;
            width: 80px;
            color: white;
            font-size: large;
            line-height: 50px;
            text-decoration: none;
            text-align: center;
        }

        /* 鼠标事件 */
        .container .navbar a:hover{
            background-color: green;
        }
        .container .navbar .login{
            float: right;
        }

        .container .content{
            width: 800px;
            margin: 0px auto;
            text-align: center;
            margin-top: 200px;
        }
    </style>
</head>
<body>
    <!-- 导航栏 不实现 -->
    <div class="container">
        <div class="navbar">
            <a href="/">首页</a>
            <a href="/all_questions">题库</a>
            <a href="#">竞赛</a>
            <a href="#">讨论</a>
            <a href="#">求职</a>
            <a class="login" href="#">登录</a>
        </div>
        <div class="content">
            <!-- 网页内容 -->
            <h1 class="font_">欢迎来到我的onlinejudge平台</h1>
            <p class="font_">这是个人独立开发的一个在线oj平台</p>
            <a class="font_" href="/all_questions">点击跳转题目页面</a>
        </div>
    </div>
</body>
</html>